import requests

# 设置服务器地址和端口
proxies = {
    'http': 'http://xxx.com:8080',
    'https': 'https://xxx.com:8080'
}

# 通过proxies发送
response = requests.get("https://baidu.com", proxies=proxies)